package cn.kgc.springboot.vue.exception;

import lombok.Data;

/**
 * @author 课工场
 * @date 2024/12/23
 * @description  自定义业务异常
 */
@Data
public class BusinessException  extends RuntimeException{

    private String info;
    private Integer code;

    public BusinessException(String info){
        this.info = info;
    }

    public BusinessException(String info,Integer code){
        this.info = info;
        this.code = code;
    }

}
